<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>字体 | H5笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/color.html" />
    
    
    <link rel="prev" href="../../md/css/w2.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.7"
        data-chapter-title="字体"
        data-filepath="md/css/font.md"
        data-basepath="../.."
        data-revision="Tue Mar 13 2018 17:15:57 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        Html知识
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/table.html">
            
                
                    <a href="../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/a.html">
            
                
                    <a href="../../md/html/a.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a标签
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="md/html/anchor.html">
            
                
                    <a href="../../md/html/anchor.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        a标签锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="md/html/base.html">
            
                
                    <a href="../../md/html/base.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        base标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="md/html/icon.html">
            
                
                    <a href="../../md/html/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        icon
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/img.html">
            
                
                    <a href="../../md/html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        图片
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="md/html/picture.html">
            
                
                    <a href="../../md/html/picture.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        picture标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="md/html/hotmap.html">
            
                
                    <a href="../../md/html/hotmap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        热区
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="md/html/video.html">
            
                
                    <a href="../../md/html/video.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="md/html/audio.html">
            
                
                    <a href="../../md/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.4.</b>
                        
                        音频
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/html/tabulation.html">
            
                
                    <a href="../../md/html/tabulation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        列表
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="md/html/ul.html">
            
                
                    <a href="../../md/html/ul.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        无序列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="md/html/dl.html">
            
                
                    <a href="../../md/html/dl.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        无序列表2
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="md/html/ol.html">
            
                
                    <a href="../../md/html/ol.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        有序列表
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/html/sz.html">
            
                
                    <a href="../../md/html/sz.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/iframe.html">
            
                
                    <a href="../../md/html/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/tz.html">
            
                
                    <a href="../../md/html/tz.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        拓展
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/ys.html">
            
                
                    <a href="../../md/css/ys.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/id-class.html">
            
                
                    <a href="../../md/css/id-class.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        id和class选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/relationship-selector.html">
            
                
                    <a href="../../md/css/relationship-selector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/css/w.html">
            
                
                    <a href="../../md/css/w.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="md/css/attribute-selectors.html">
            
                
                    <a href="../../md/css/attribute-selectors.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="md/css/w2.html">
            
                
                    <a href="../../md/css/w2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.7" data-path="md/css/font.html">
            
                
                    <a href="../../md/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="md/css/color.html">
            
                
                    <a href="../../md/css/color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        元素颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="md/css/text-shadow.html">
            
                
                    <a href="../../md/css/text-shadow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        文本阴影
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.9.1" data-path="md/css/textdecoration.html">
            
                
                    <a href="../../md/css/textdecoration.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.1.</b>
                        
                        文本的线
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9.2" data-path="md/cs/vertical-align.html">
            
            <span><b>2.9.2.</b> 文本垂直对齐</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="md/css/box.html">
            
                
                    <a href="../../md/css/box.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        盒子
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="md/css/zhu.html">
            
                
                    <a href="../../md/css/zhu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        行内元素和块级元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="md/css/float.html">
            
                
                    <a href="../../md/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.2.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="md/css/flex.html">
            
                
                    <a href="../../md/css/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.3.</b>
                        
                        弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="md/css/location.html">
            
                
                    <a href="../../md/css/location.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="md/css/exercise.html">
            
                
                    <a href="../../md/css/exercise.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/gitbook/use.html">
            
                
                    <a href="../../md/gitbook/use.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        gitbook使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/scss/scss.html">
            
                
                    <a href="../../md/scss/scss.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        Sass使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="md/gulp/gulp.html">
            
                
                    <a href="../../md/gulp/gulp.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        Gulp
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="md/js.html">
            
            <span><b>6.</b> JS</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="md/js/js_date_obj.html">
            
                
                    <a href="../../md/js/js_date_obj.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        Date对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="md/js/理解对象.html">
            
                
                    <a href="../../md/js/理解对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.2.</b>
                        
                        理解对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="md/js/事件.html">
            
                
                    <a href="../../md/js/事件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.3.</b>
                        
                        事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="md/js/XMLHttpRequest对象.html">
            
                
                    <a href="../../md/js/XMLHttpRequest对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.4.</b>
                        
                        AJAX
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >H5笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x5B57;&#x4F53;&#x6837;&#x5F0F;">&#x5B57;&#x4F53;&#x6837;&#x5F0F;</h1>
<p><strong>&#x5F97;:&#x6539;&#x53D8;&#x5B57;&#x4F53;&#x7684;&#x663E;&#x793A;&#x65B9;&#x5F0F;&#xFF0C;&#x8FD8;&#x6709;&#x5F62;&#x6001;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;&#x5B57;&#x4F53;&#x6539;&#x53D8;&#x6210;&#x9700;&#x8981;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x4F46;&#x4E0D;&#x4F1A;&#x6539;&#x53D8;&#x6210;&#x5176;&#x4ED6;&#x5143;&#x7D20;</strong></p>
<p>&#x4EE3;&#x7801;&#x793A;&#x4F8B;:</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
        <span class="hljs-tag">body</span><span class="hljs-rules">{
            <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">30px</span></span></span>;
        }</span>
            <span class="hljs-class">.test</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">24px</span></span></span>;  <span class="hljs-comment">/*&#x5B57;&#x4F53;&#x5927;&#x5C0F;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> bold</span></span>;    
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">200%</span></span></span>;  
                <span class="hljs-rule"><span class="hljs-attribute">font-style</span>:<span class="hljs-value"> italic</span></span>;  
                <span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> small-caps</span></span>; 
                <span class="hljs-rule"><span class="hljs-attribute">font-family</span>:<span class="hljs-value"> <span class="hljs-string">&quot;Helvetion Neue&quot;</span>,Helvetica,Arial,<span class="hljs-string">&quot;PingFang SC&quot;</span>,<span class="hljs-string">&quot;Hiragino Sans GB&quot;</span>,<span class="hljs-string">&quot;Heiti SC&quot;</span>,<span class="hljs-string">&quot;sans-serif&quot;</span></span></span>;
            }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;test&quot;</span>&gt;</span>
            &#x6211;&#x662F;DIV
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<p><em>&#x4EE3;&#x7801;&#x91CC;&#x7684;&#x6CE8;&#x610F;&#x70B9;&#xFF1A;</em></p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> bold</span></span>;
</code></pre>
<p>&#x5B57;&#x4F53;&#x7684;&#x52A0;&#x7C97;,&#x901A;&#x5E38;&#x5199;bold,&#x4E0D;&#x52A0;&#x5C31;&#x6B63;&#x5E38;&#x5B57;&#x4F53;&#x663E;&#x793A;(normal)</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">200%</span></span></span>; 
<span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">24px</span></span></span>;
</code></pre>
<p>&#x9664;&#x4E86;&#x7EDD;&#x5BF9;&#x503C;&#x8FD8;&#x53EF;&#x4EE5;&#x7528;&#x767E;&#x5206;&#x6BD4;&#xFF0C;&#x57FA;&#x4E8E;&#x7236;&#x5143;&#x7D20;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x8FDB;&#x884C;&#x767E;&#x5206;&#x6BD4;&#x8BA1;&#x7B97;,&#x6240;&#x4EE5;&#xFF0C;&#x767E;&#x5206;&#x6BD4;&#x7684;&#x65F6;&#x5019;&#x8981;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x7236;&#x5143;&#x7D20;&#x5728;&#x6240;&#x8BBE;&#x7F6E;&#x7684;&#x5B57;&#x4F53;&#x524D;</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">font-style</span>:<span class="hljs-value"> italic</span></span>;
</code></pre>
<p>&#x5B57;&#x4F53;&#x7684;&#x503E;&#x659C;,&#x901A;&#x5E38;&#x5199;italic,&#x4E0D;&#x52A0;&#x5C31;&#x6B63;&#x5E38;&#x5B57;&#x4F53;&#x663E;&#x793A;(normal)</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> small-caps</span></span>;
</code></pre>
<p> &#x5C0F;&#x578B;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#xFF0C;&#x53EA;&#x80FD;&#x7528;&#x5728;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#xFF0C;&#x4F7F;&#x7528;&#x9891;&#x7387;&#x4E0D;&#x9AD8;</p>
<p><strong>&#x7F51;&#x7AD9;&#x5B57;&#x4F53;&#xFF0C;&#x4E3B;&#x8981;&#x5206;&#x4E3A;&#x886C;&#x7EBF;&#x548C;&#x975E;&#x886C;&#x7EBF;&#xFF1B;&#x901A;&#x5E38;&#x7F51;&#x7AD9;&#x4E3B;&#x6D41;&#x4F7F;&#x7528;&#x975E;&#x886C;&#x7EBF;&#x5B57;&#x4F53;&#xFF08;sans-serif&#xFF09;</strong></p>
<table>
<thead>
<tr>
<th>&#x8BED;&#x8A00;</th>
<th>&#x7CFB;&#x7EDF;</th>
<th>&#x533A;&#x522B;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x82F1;&#x6587;</td>
<td>win/mac</td>
<td>Arial/&quot;Helvetion Neue&quot;, Helvetica</td>
</tr>
<tr>
<td>&#x4E2D;&#x6587;</td>
<td>win/mac</td>
<td>&quot;Microsoft Yahei&quot; / &quot;PingFang SC&quot; , &quot;Hiragino Sans GB&quot;,&quot;Heiti SC&quot;</td>
</tr>
</tbody>
</table>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;&#x5982;&#x679C;&#x4EE5;&#x4E0A;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x90FD;&#x6CA1;&#x6709;&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x4F1A;&#x7ED9;&#x4E2A;&#x4FDD;&#x5E95;&#x9009;&#x62E9;&#xFF0C;&#x53EB;&#x975E;&#x886C;&#x7EBF;&#x5B57;&#x4F53;(&quot;sans-serif&quot;)</strong></p>
<p><em>&#x5199;&#x6CD5;&#xFF1A;&#x4F18;&#x5148;mac&#x7CFB;&#x7EDF;&#xFF0C;&#x518D;&#x5199;win&#x7CFB;&#x7EDF;&#xFF0C;&#x4F18;&#x5148;&#x82F1;&#x6587;&#x5B57;&#x4F53;&#xFF0C;&#x518D;&#x5199;&#x4E2D;&#x6587;&#x5B57;&#x4F53;</em></p>
<p> <em>&#x6D4F;&#x89C8;&#x5668;&#x5728;&#x5E94;&#x7528;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x4F1A;&#x4F18;&#x5148;&#x5224;&#x65AD;&#x82F1;&#x6587;&#x5B57;&#x4F53;&#xFF0C;&#x518D;&#x5224;&#x65AD;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#xFF0C;&#x591A;&#x4E2A;&#x5B57;&#x4F53;&#x8981;&#x7528;&#x7A7A;&#x683C;&#x9694;&#x5F00;&#xFF0C;&#x5982;&#x679C;&#x5B57;&#x4F53;&#x540D;&#x5E26;&#x6709;&#x7A7A;&#x683C;&#xFF0C;&#x90FD;&#x9700;&#x8981;&#x7528;&#x5F15;&#x53F7;&#x5305;&#x8D77;&#x6765;</em></p>
<p> &#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-css"> font-family: &quot;Helvetion Neue&quot;,Helvetica,Arial,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Heiti SC&quot;,&quot;sans-serif&quot;;
*font&#xFF1A;[ [ &lt;&apos; font-style &apos;&gt; || &lt;&apos; font-variant &apos;&gt; || &lt;&apos; font-weight &apos;&gt; ]? &lt;&apos; font-size &apos;&gt; [ / &lt;&apos; line-height &apos;&gt; ]? &lt;&apos; font-family &apos;&gt; ] | caption | icon | menu | message-box | small-caption | status-bar
                /*&#x96C6;&#x5408;&#x5199;&#x6CD5;,&#x8BA4;&#x8BC6;&#x4E00;&#x4E0B;&#x5C31;&#x597D;*/
</code></pre>
<p>&#x7B2C;&#x4E00;&#x4E2A;&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#x7684;&#x96C6;&#x5408;&#x4F53;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">font</span>:<span class="hljs-value">italic bold small-caps <span class="hljs-number">24px</span> / <span class="hljs-number">32px</span> <span class="hljs-string">&quot;Helvetion Neue&quot;</span>,Helvetica,Arial,<span class="hljs-string">&quot;PingFang SC&quot;</span>,<span class="hljs-string">&quot;Hiragino Sans GB&quot;</span>,<span class="hljs-string">&quot;Heiti SC&quot;</span>,<span class="hljs-string">&quot;sans-serif&quot;</span></span></span>;
</code></pre>
<h3 id="&#x6587;&#x5B57;&#x7684;&#x5904;&#x7406;">&#x6587;&#x5B57;&#x7684;&#x5904;&#x7406;</h3>
<p><strong>&#x5F97;&#xFF1A;&#x8FD9;&#x662F;&#x4E00;&#x79CD;&#x5BF9;&#x6587;&#x5B57;&#x663E;&#x793A;&#x6BD4;&#x8F83;&#x901A;&#x7528;&#x7684;&#x4E00;&#x4E2A;&#x65B9;&#x6CD5;&#xFF0C;&#x53EF;&#x4EE5;&#x63D0;&#x5347;&#x6587;&#x5B57;&#x5728;&#x5E03;&#x5C40;&#x91CC;&#x7684;&#x663E;&#x793A;&#x6548;&#x679C;&#xFF0C;&#x8BA9;&#x4E00;&#x4E9B;&#x957F;&#x6587;&#x53EF;&#x4EE5;&#x66F4;&#x6709;&#x6548;&#x7684;&#x663E;&#x793A;</strong></p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span>&gt;</span><span class="css">
            <span class="hljs-tag">div</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> chartreuse</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">white-space</span>:<span class="hljs-value"> nowrap</span></span>;  <span class="hljs-comment">/*&#x5F3A;&#x5236;&#x5355;&#x884C;&#x8F93;&#x51FA;&#xFF0C;&#x9632;&#x6B62;&#x6587;&#x5B57;&#x8DD1;&#x5230;&#x4E0B;&#x4E00;&#x884C;&#xFF0C;&#x800C;&#x6CA1;&#x6709;&#x89E6;&#x53D1;&#x8FB9;&#x754C;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">overflow</span>:<span class="hljs-value"> hidden</span></span>;   <span class="hljs-comment">/*&#x521B;&#x5EFA;&#x8FB9;&#x754C;&#xFF0C;&#x8D85;&#x51FA;&#x8FB9;&#x754C;&#x65F6;&#x9690;&#x85CF;&#x5185;&#x5BB9;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">text-overflow</span>:<span class="hljs-value"> ellipsis</span></span>;   <span class="hljs-comment">/*&#x6587;&#x5B57;&#x9047;&#x5230;&#x8FB9;&#x754C;&#x65F6;&#xFF0C;&#x6587;&#x5B57;&#x6EA2;&#x51FA;&#x65F6;&#x663E;&#x793A;&#x7701;&#x7565;&#x53F7;*/</span>
            }</span>
            <span class="hljs-tag">p</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">50px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">line-height</span>:<span class="hljs-value"> <span class="hljs-number">25px</span></span></span>;
                <span class="hljs-comment">/*&#x591A;&#x884C;&#x6EA2;&#x51FA;&#x5904;&#x7406;
                 &#x6CE8;&#x610F;&#xFF1A;&#x6587;&#x5B57;&#x7684;&#x5BB9;&#x5668;&#x7684;&#x9AD8;&#x5EA6;=&#x884C;&#x9AD8;*&#x6700;&#x5927;&#x652F;&#x6301;&#x884C;&#x6570;
                 * */</span>
                <span class="hljs-rule"><span class="hljs-attribute">overflow</span>:<span class="hljs-value"> hidden</span></span>;       <span class="hljs-comment">/*&#x8D85;&#x51FA;&#x5185;&#x5BB9;&#x8981;&#x9690;&#x85CF;&#xFF0C;&#x521B;&#x5EFA;&#x8FB9;&#x754C;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">text-overflow</span>:<span class="hljs-value"> ellipsis</span></span>;  <span class="hljs-comment">/*&#x6587;&#x5B57;&#x9047;&#x5230;&#x8FB9;&#x754C;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x663E;&#x793A;&#x7701;&#x7565;&#x53F7;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">display</span>:<span class="hljs-value"> -webkit-box</span></span>;    <span class="hljs-comment">/*&#x8BBE;&#x7F6E;&#x4E3A;&#x5F39;&#x6027;&#x76D2;&#x5B50;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">-webkit-line-clamp</span>:<span class="hljs-value"> <span class="hljs-number">2</span></span></span>;  <span class="hljs-comment">/*&#x8868;&#x793A;&#x6587;&#x5B57;&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x7684;&#x6700;&#x5927;&#x884C;&#x6570;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">-webkit-box-orient</span>:<span class="hljs-value"> vertical</span></span>;  <span class="hljs-comment">/*&#x8BBE;&#x7F6E;&#x6587;&#x5B57;&#x6392;&#x7248;&#x65B9;&#x5411;&#x4ECE;&#x4E0A;&#x5230;&#x4E0B;*/</span>
            }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>
            &#x98DE;&#x673A;&#x7684;&#x6C99;&#x53D1;&#x91CC;&#x5341;&#x5206;&#x7C7B;&#x4F3C;&#x7684;&#x798F;&#x5229;&#x4E0A;&#x8DEF;&#x5C16;&#x5CF0;&#x65F6;&#x523B;&#x6765;&#x5F97;&#x53CA;&#x53D1;&#x7262;&#x9A9A;&#x8D37;&#x6B3E;&#x7EA0;&#x7EB7;&#x6740;&#x622E;&#x7A7A;&#x95F4;&#x4E86;
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
            s&#x65F6;&#x4EE3;&#x7684;&#x8FD8;&#x662F;&#x5E97;&#x91CC;&#x554A;&#x4F1A;&#x5E26;&#x6765;&#x5F88;&#x591A;&#x5566;&#x65F6;&#x4EE3;&#x91CC;&#x62C9;&#x675C;&#x62C9;&#x62C9;&#x55F2;&#x5341;&#x5927;&#x4E86;&#x5341;&#x5927;
        <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<p><code>white-space</code> &#x6587;&#x5B57;&#x6362;&#x884C;&#x7684;&#x5904;&#x7406;&#x673A;&#x5236;
<code>normal</code>&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x6587;&#x5B57;&#x9047;&#x5230;&#x5BB9;&#x5668;&#x8FB9;&#x7F18;&#x4F4D;&#x7F6E;&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x6362;&#x884C;
<code>nowrap</code>&#x7981;&#x6B62;&#x6362;&#x884C;&#xFF0C;&#x6587;&#x5B57;&#x9047;&#x5230;&#x5BB9;&#x5668;&#x8FB9;&#x7F18;&#x4F4D;&#x7F6E;&#xFF0C;&#x5F3A;&#x5236;&#x4E0D;&#x6362;&#x884C;
<code>pre</code>&#x7981;&#x6B62;&#x6362;&#x884C;&#xFF0C;&#x5E76;&#x4E14;&#x628A;&#x5BB9;&#x5668;&#x5185;&#x7684;&#x6240;&#x6709;&#x7A7A;&#x683C;&#x548C;&#x6362;&#x884C;&#xFF0C;&#x4E00;&#x5B57;&#x4E0D;&#x6F0F;&#x7684;&#x663E;&#x793A;&#x51FA;&#x6765;</p>
<p><em>&#x6587;&#x6863;&#x6D41;</em></p>
<p>1.&#x6839;&#x636E;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x9ED8;&#x8BA4;&#x6E32;&#x67D3;&#x987A;&#x5E8F;&#xFF0C;&#x4ECE;&#x4E0A;&#x5F80;&#x4E0B;&#xFF0C;&#x4ECE;&#x5DE6;&#x5F80;&#x53F3;&#x4F9D;&#x6B21;&#x6392;&#x5217;
2.&#x53EA;&#x8981;&#x662F;&#x6309;&#x7167;&#x6B63;&#x5E38;&#x6587;&#x6863;&#x6D41;&#x6392;&#x5E8F;&#x7684;&#x5143;&#x7D20;&#xFF0C;&#x5B83;&#x7684;&#x5360;&#x5730;&#x9762;&#x79EF;&#xFF0C;&#x662F;&#x6839;&#x636E;&#x76D2;&#x5B50;&#x6A21;&#x578B;&#x8BA1;&#x7B97;&#x800C;&#x6765;</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/css/w2.html" class="navigation navigation-prev " aria-label="Previous page: 伪对象选择器"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/color.html" class="navigation navigation-next " aria-label="Next page: 元素颜色"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"redirect":{},"splitter":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
